* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.card {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.5rem 1.5rem 0.75rem;
    border-bottom: 1px solid #eee;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-description {
    color: #666;
    font-size: 0.875rem;
}

.card-content {
    padding: 1.5rem;
}

.tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tabs-list {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    overflow: hidden;
}

.tab-trigger {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tab-trigger:not(:last-child) {
    border-right: 1px solid #ddd;
}

.tab-trigger.active {
    background-color: #f0f0f0;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline {
    background: none;
    border: 1px solid #ddd;
    color: #333;
}

.btn-outline:hover {
    background-color: #f5f5f5;
}

.btn-ghost {
    background: none;
    border: none;
    color: #333;
}

.btn-ghost:hover {
    background-color: #f5f5f5;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.text-area-container {
    margin-bottom: 1rem;
}

.area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.area-header h3 {
    font-size: 0.875rem;
    font-weight: 500;
}

.text-input {
    width: 100%;
    height: 300px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.875rem;
    resize: vertical;
}

.diff-content {
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    padding: 1rem;
    background-color: #f9f9f9;
    font-family: monospace;
    font-size: 0.875rem;
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: auto;
}

.diff-line {
    padding: 0.25rem 0;
}

.diff-added {
    background-color: #e6ffec;
    color: #22863a;
}

.diff-removed {
    background-color: #ffebe9;
    color: #cf222e;
}

.material-icons {
    font-size: 18px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .tabs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
} 